import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
// TODO vllt. das Frame noch in den RandomDrawing un ddann mit zwei Frames rumspielen. 

/**
 * @author 
 * Yannic Remmet			196983
 * Tobias Trabelsi			197112
 * Anna-Katharina Wickert	197122
 */
public class Buttons extends Frame implements ActionListener {

	private static final long serialVersionUID = 1586102754788828678L;
	  Button draw;
      Button clear;
      Button exit;
      
      public Buttons() {
	      draw = new Button("Draw");
	      clear = new Button("Clear");
	      exit = new Button("Exit");
	      exit.addActionListener(this);
	      clear.addActionListener(this);
	      add(draw);
	      add(clear);
	      add(exit);
	      setLayout(new FlowLayout());
	      setSize(300,100);
	      
	      setVisible(true);
      }

	/* (non-Javadoc)
	 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
	 */
	@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getActionCommand().equals("Exit")){
			System.exit(1);
		}
		if (e.getActionCommand().equals("Clear")){
			
		}
		
	}

}
